﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Yala.Client.Web.MVC.Models
{
    public class Item
    {
        public Guid ItemId { get; set; }
        public string ItemName { get; set; }
        public string Description { get; set; }
        public DateTime CreatedDate { get; set; }
        public Guid OwnerId { get; set; }
        public Guid ParentId { get; set; }
        public string Category { get; set; }
    }

    public class ToDoItem : Item
    {
        public Guid PriorityId { get; set; }
        public string Recurrence { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public ToDoStatus Status { get; set; }
    }

    public enum ToDoStatus
    {
        Created,
        Assigned,
        Stated,
        Completed,
        Rejected,
        Failed
    }

    public class ToDoItemsModel
    {
        public List<ToDoItem> ToDoItems { get; set; }

        public ToDoItemsModel()
        {
            ToDoItems = new List<ToDoItem>();

            ToDoItems = InitialToDoListData.GetData();
        }
    }
}